<template>
  <div class="about">
    <div class="container">
      <el-row>
        <el-col :span="6">
          <el-statistic title="Daily active users" :value="268500" />
        </el-col>
        <el-col :span="6">
          <el-statistic :value="138">
            <template #title>
              <div style="display: inline-flex; align-items: center">
                Ratio of men to women
                <el-icon style="margin-left: 4px" :size="12">
                  <Male />
                </el-icon>
              </div>
            </template>
            <template #suffix>/100</template>
          </el-statistic>
        </el-col>
        <el-col :span="6">
          <el-statistic title="Total Transactions" :value="outputValue" />
        </el-col>
        <el-col :span="6">
          <el-statistic title="Feedback number" :value="562">
            <template #suffix>
              <el-icon style="vertical-align: -0.125em">
                <ChatLineRound />
              </el-icon>
            </template>
          </el-statistic>
        </el-col>
      </el-row>
    </div>
    <div class="tj">
      <Chart />
    </div>
    <div class="tj-box">
      <div>
        <Hell />
      </div>
      <div>
        <Welc />
      </div>
    </div>
  </div>
</template>

<script>
import Chart from "../../components/Chate.vue";
import Hell from "../../components/HelloWorld.vue"
import Welc from "../../components/WelcomeItem.vue"
import { ref } from "vue";
import { useTransition } from "@vueuse/core";
import { ChatLineRound, Male } from "@element-plus/icons-vue";
export default {
  components: {
    Chart,
    Hell,
    Welc,
  },
  setup() {
    const source = ref(0);
    const outputValue = useTransition(source, {
      duration: 1500,
    });
    return {
      outputValue,
    }
  },
};
</script>
<style lang="scss" scoped>
.about {
  .container {
    .el-col {
      text-align: center;
    }
  }
  .tj{
    margin-top: 50px;
  }
  .tj-box{
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: space-around;
    div:nth-child(1){
      width: 45%;
    }
    div:nth-child(2){
      width: 45%;
    }
  }
}
</style>
